package com.xiangpq.pattern.structuralPatterns.proxyPattern.staticProxy;

/**
 * @author XPQ
 * @function 代理商 WeiShang
 * @since 2024-03-31
 */
public class WeiShang implements UsbSell {

    private UsbKingFactory factory = new UsbKingFactory();

    @Override
    public float sell(int amout) throws Exception {
        float price = factory.sell(1000);
        // 利润是 20
        return (price + 20) * amout;
    }
}
